﻿using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;

namespace BabyCloudDrives.DesktopApp.Models.Converter
{
    public class SkyDriveEntryBasesConverter : CustomCreationConverter<SkyDriveEntryBase>
    {
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            throw new NotImplementedException();
        }

        public override object ReadJson(JsonReader reader, Type objectType, object existingValue,
                                        JsonSerializer serializer)
        {
            var jObj = JObject.Load(reader);
            return null;
        }

        public override SkyDriveEntryBase Create(Type objectType)
        {
            return new SkyDriveEntryBase();
        }

        public override bool CanConvert(Type objectType)
        {
            return true;
        }
    }
}